forum

home / developersection / forums / using routes in asp.net gridview hyperlinks

Using routes in ASP.NET Gridview Hyperlinks

Manoj Bhatt 1855 23-Aug-2014

I have a Gridview with a Hyperlink column. I want to route(Navigate) using hyperlinks depending on the id value from the database.

<asp:HyperLinkField DataNavigateUrlFields="id" 
                      DataNavigateUrlFormatString="product"DataTextField="pName"
                      HeaderText="Product Name"       NavigateUrl='<%$ RouteUrl:id=Eval("id"), routename = ProductRoute%>'
       />

This results in an error message:

404 page not found

How can this be fixed?


Updated on 23-Aug-2014
Manoj Bhatt

Other


Message
Can you answer this question?

Answer

1 Answers

Liked By